package com;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
//@EnableRedisHttpSession
//有个配置类   是这个
public class Test2 {  

//    @Override  
//    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {  
//        return builder.sources(Test2.class);  
//    }  

    public static void main(String[] args) {  
        SpringApplication.run(Test2.class, args);  
    }


//    @Override  
//    public void customize(ConfigurableEmbeddedServletContainer container) {
//        //指定项目名称
//        //container.setContextPath("/demo");
//        //指定端口地址
//        container.setPort(8088);  
//    }  
}